define(['../../carrys/qrcode'],function() {
    return ['$scope','$location', '$interval','$timeout','$route', function($scope,$location,$interval,$timeout,$route) {
		$scope.$emit("top-show",'true');//顶部显示
    	$scope.$emit('menuTypeLight','mine'); 	//控制底部menu高亮
    	$scope.$emit('bub-menu','true'); 	//隐藏底部menu
    	$scope.$emit('flag-tag','53');//显示底部文字
    	
    	
    	$timeout(function(){
    		document.querySelector('#sweepQrCode .qr_codeInfo .qr_code').style.marginLeft = (document.documentElement.clientWidth-160)/2 + 'px';
        	document.querySelector('#sweepQrCode .qr_codeInfo .qr_code').style.marginRight = (document.documentElement.clientWidth-160)/2 + 'px';
    	},0);
    			
    	//生成二维码
    	var qrcode = new QRCode(document.querySelector('#sweepQrCode .qr_codeInfo .qr_code'), {
            width : 160,//设置宽高
            height : 160
        });
    	var data = {};
		data.userId = transData.userId;
		data.userName = resultData.loginUserData.userName;
		data.mobileNo = transData.mobileNo;
		var qrcodeUrl = shareFunsUrl + "packet="+JSON.stringify(data);
    	qrcode.makeCode(encodeURI(qrcodeUrl));
    	
    	
        $scope.$apply();
    }];
});